package com.lwq.commentTool.model;

import java.util.ArrayList;
import java.util.List;


public class EditInformModel {
	private List<EditItemInformModel> Datas = null;
	
	public  EditInformModel(){
		Datas = new ArrayList<EditItemInformModel>();
	}
	
	public List<EditItemInformModel> getDatas() {
		return Datas;
	}

	public void setDatas(List<EditItemInformModel> datas) {
		Datas = datas;
	}
	
	public int getItemCount() {
		if(Datas == null){
			return 0;
		}else{
			return Datas.size();
		}
	}
	
	public EditItemInformModel getItem(int index) {
		if(Datas == null){
			return null;
		}else{
			if(index < Datas.size()){
				return Datas.get(index);
			}else{
				return null;
			}
		}
	}
	
	public boolean addItem(EditItemInformModel item) {
		if(item == null) return false;
		if(Datas == null){
			return false;
		}else{
			return Datas.add(item);
		}
	}
}
